import java.util.ArrayList;
import java.util.Collections;


/**
 * Created by natalia on 10/1/14.
 */
public class Deck {
	private ArrayList<Card> deck = new ArrayList<Card>();

	Deck() {
		setUpDeck();
	}

	public ArrayList<Card> getCardsInDeck() {
		return deck;
	}

	public void setUpDeck() {

		for (Card.LEVELS level: Card.LEVELS.values()) {
			deck.add(new Card(Card.SUIT.SPADE, Card.COLOUR.BLACK, level));
			deck.add(new Card(Card.SUIT.CLUB, Card.COLOUR.BLACK, level));
			deck.add(new Card(Card.SUIT.HEART, Card.COLOUR.RED, level));
			deck.add(new Card(Card.SUIT.DIAMOND, Card.COLOUR.BLACK, level));
		}
		Collections.shuffle(deck);
	}
}

